<include file="Public/header" title="编辑角色" />
<div id="page-wrapper">
    <form method="post" action="{:U('Role/edit')}">
  <input name="id" value="{$info.id}" type="hidden">
        
        <div class="form-group">
            <label for="cc">角色名称</label>
             <input class="form-control"  name="rolename" value="{$info.rolename}" type="text">
        </div>

        <div class="form-group">
            <label for="cc">角色的权限</label>
             <ul>
                <volist name="data" id="vo">
                    <li level="{$vo.level}">

                            <input <if condition="in_array($vo['id'],$idList)">checked="checked" </if> class="common-text" name="prilist[]" size="50" value="{$vo.id}" type="checkbox">
                            {$vo.level|level}{$vo.name}
                    </li>
                </volist>
            </ul>
        </div>

        <div class="form-group">
            <button type="submit" class="btn btn-default">提交</button>
        </div>
    </form>
</div>


<include file="Public/footer" />